home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / human interface toolbox / packagetool / sample package / htmlsample sources / makefile < prev    next >
Encoding:
Makefile  |  2000-06-23  |  4.7 KB  |  115 lines

  1. # /*
  2. #     File: MakeFile
  3. #     
  4. #     Description:
  5. #         build commands for HTMLSample
  6. #     Copyright:
  7. #         © Copyright 1999 Apple Computer, Inc. All rights reserved.
  8. #     
  9. #     Disclaimer:
  10. #         IMPORTANT:  This Apple software is supplied to you by Apple Computer, Inc.
  11. #         ("Apple") in consideration of your agreement to the following terms, and your
  12. #         use, installation, modification or redistribution of this Apple software
  13. #         constitutes acceptance of these terms.  If you do not agree with these terms,
  14. #         please do not use, install, modify or redistribute this Apple software.
  15. #         In consideration of your agreement to abide by the following terms, and subject
  16. #         to these terms, Apple grants you a personal, non-exclusive license, under Apple’s
  17. #         copyrights in this original Apple software (the "Apple Software"), to use,
  18. #         reproduce, modify and redistribute the Apple Software, with or without
  19. #         modifications, in source and/or binary forms; provided that if you redistribute
  20. #         the Apple Software in its entirety and without modifications, you must retain
  21. #         this notice and the following text and disclaimers in all such redistributions of
  22. #         the Apple Software.  Neither the name, trademarks, service marks or logos of
  23. #         Apple Computer, Inc. may be used to endorse or promote products derived from the
  24. #         Apple Software without specific prior written permission from Apple.  Except as
  25. #         expressly stated in this notice, no other rights or licenses, express or implied,
  26. #         are granted by Apple herein, including but not limited to any patent rights that
  27. #         may be infringed by your derivative works or by other works in which the Apple
  28. #         Software may be incorporated.
  29. #         The Apple Software is provided by Apple on an "AS IS" basis.  APPLE MAKES NO
  30. #         WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED
  31. #         WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  32. #         PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN
  33. #         COMBINATION WITH YOUR PRODUCTS.
  34. #         IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR
  35. #         CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
  36. #         GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  37. #         ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION
  38. #         OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT, TORT
  39. #         (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN
  40. #         ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  41. #     Change History (most recent first):
  42. #         Wed, Dec 22, 1999 -- created
  43. # */
  44.  
  45. # PPCObjects contains the names of all the powerpc object files
  46. # generated by the C compiler.  We put all the object files in a
  47. # directory called 'obj'
  48. PPCObjects = :obj:HTMLSample.c.ppc ∂
  49.     :obj:History.c.ppc ∂
  50.     :obj:CIconButtons.c.ppc ∂
  51.     :obj:RenderingWindow.c.ppc ∂
  52.     :obj:AboutBox.c.ppc ∂
  53.     :obj:SampleUtils.c.ppc
  54.  
  55. # CCppc contains the C compiler comand we use for compiling
  56. # the source files.
  57. CCppc  = MrC -w 35 -align power -proto strict 
  58.  
  59. # RezFiles contains a list of the rez files used in this build.
  60. RezFiles = HTMLSample.r
  61.  
  62. # Resources contains a list of all the resource and rez files
  63. # used to build the application
  64. Resources = {RezFiles} HTMLSample.rsrc
  65.  
  66. # resources
  67.  
  68. HTMLSample ƒƒ {Resources} {PPCObjects}
  69.     Rez -t "APPL" -i "{RIncludes}" -o HTMLSample {RezFiles}
  70.  
  71. # object code
  72.  
  73. HTMLSample ƒƒ {Resources} {PPCObjects}
  74.     PPCLink -o HTMLSample ∂
  75.         {PPCObjects} ∂
  76.         {SharedLibraries}NavigationLib ∂
  77.         {SharedLibraries}AppearanceLib ∂
  78.         {SharedLibraries}InterfaceLib ∂
  79.         {SharedLibraries}StdCLib ∂
  80.         {SharedLibraries}MathLib ∂
  81.         {SharedLibraries}HTMLRenderingLib ∂
  82.         {PPCLibraries}PPCCRuntime.o ∂
  83.         {PPCLibraries}PPCToolLibs.o ∂
  84.         {PPCLibraries}StdCRuntime.o
  85.  
  86. # bundle
  87.  
  88. HTMLSample ƒƒ {Resources} {PPCObjects}
  89.     SetFile -t APPL -c vTeZ -a iB HTMLSample
  90.  
  91. # source code
  92.  
  93. :obj:HTMLSample.c.ppc ƒ  HTMLSample.c HTMLSample.h RenderingWindow.h SampleUtils.h
  94.     {CCppc} HTMLSample.c -o :obj:HTMLSample.c.ppc
  95.  
  96. :obj:RenderingWindow.c.ppc ƒ  RenderingWindow.c RenderingWindow.h SampleUtils.h  CIconButtons.h History.h
  97.     {CCppc} RenderingWindow.c -o :obj:RenderingWindow.c.ppc
  98.  
  99. :obj:History.c.ppc ƒ  History.c History.h
  100.     {CCppc} History.c -o :obj:History.c.ppc
  101.  
  102. :obj:CIconButtons.c.ppc ƒ  CIconButtons.c CIconButtons.h
  103.     {CCppc} CIconButtons.c -o :obj:CIconButtons.c.ppc
  104.  
  105. :obj:SampleUtils.c.ppc ƒ  SampleUtils.c SampleUtils.h
  106.     {CCppc} SampleUtils.c -o :obj:SampleUtils.c.ppc
  107.  
  108. :obj:AboutBox.c.ppc ƒ  AboutBox.c AboutBox.h
  109.     {CCppc} AboutBox.c -o :obj:AboutBox.c.ppc
  110.